package com.teamall.web.main.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class CodeStatTownArg {
    private String pk_name = "TOWN_ID";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<CodeStatTownCriteria> oredCriteria;

    public CodeStatTownArg() {
        oredCriteria = new ArrayList<CodeStatTownCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<CodeStatTownCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(CodeStatTownCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public CodeStatTownCriteria or() {
    	CodeStatTownCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public CodeStatTownCriteria createCriteria() {
    	CodeStatTownCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected CodeStatTownCriteria createCriteriaInternal() {
    	CodeStatTownCriteria criteria = new CodeStatTownCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<CodeStatTownCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<CodeStatTownCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<CodeStatTownCriterion> getAllCriteria() {
            return criteria;
        }

        public List<CodeStatTownCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new CodeStatTownCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new CodeStatTownCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new CodeStatTownCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new CodeStatTownCriterion(condition, value1, value2));
        }

        public CodeStatTownCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (CodeStatTownCriteria) this;
        }
        public CodeStatTownCriteria andTownIdIsNull() {
            addCriterion("TOWN_ID is null");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownIdIsNotNull() {
            addCriterion("TOWN_ID is not null");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownIdEqualTo(Integer value) {
            addCriterion("TOWN_ID =", value, "TOWN_ID");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownIdNotEqualTo(Integer value) {
            addCriterion("TOWN_ID <>", value, "TOWN_ID");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownIdGreaterThan(Integer value) {
            addCriterion("TOWN_ID >", value, "TOWN_ID");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("TOWN_ID >=", value, "TOWN_ID");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownIdLessThan(Integer value) {
            addCriterion("TOWN_ID <", value, "TOWN_ID");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownIdLessThanOrEqualTo(Integer value) {
            addCriterion("TOWN_ID <=", value, "TOWN_ID");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownIdLike(Integer value) {
            addCriterion("TOWN_ID like ", value, "TOWN_ID", 1);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownIdNotLike(Integer value) {
            addCriterion("TOWN_ID  not like ", value, "TOWN_ID", 1);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownIdLeftLike(Integer value) {
            addCriterion("TOWN_ID like ", value, "TOWN_ID", 0);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownIdNotLeftLike(Integer value) {
            addCriterion("TOWN_ID  not like ", value, "TOWN_ID", 0);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownIdRightLike(Integer value) {
            addCriterion("TOWN_ID like ", value, "TOWN_ID", 2);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownIdNotRightLike(Integer value) {
            addCriterion("TOWN_ID  not like ", value, "TOWN_ID", 2);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownIdIn(List<Integer> values) {
            addCriterion("TOWN_ID  in ", values, "TOWN_ID");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownIdNotIn(List<Integer> values) {
            addCriterion("TOWN_ID not in ", values, "TOWN_ID");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownIdBetween(Integer value1, Integer value2) {
            addCriterion("TOWN_ID between ", value1, value2, "TOWN_ID");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownIdNotBetween(Integer value1, Integer value2) {
            addCriterion("TOWN_ID not between ", value1, value2, "TOWN_ID");
            return (CodeStatTownCriteria) this;
        }
        public CodeStatTownCriteria andTownNameIsNull() {
            addCriterion("TOWN_NAME is null");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownNameIsNotNull() {
            addCriterion("TOWN_NAME is not null");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownNameEqualTo(String value) {
            addCriterion("TOWN_NAME =", value, "TOWN_NAME");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownNameNotEqualTo(String value) {
            addCriterion("TOWN_NAME <>", value, "TOWN_NAME");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownNameGreaterThan(String value) {
            addCriterion("TOWN_NAME >", value, "TOWN_NAME");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownNameGreaterThanOrEqualTo(String value) {
            addCriterion("TOWN_NAME >=", value, "TOWN_NAME");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownNameLessThan(String value) {
            addCriterion("TOWN_NAME <", value, "TOWN_NAME");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownNameLessThanOrEqualTo(String value) {
            addCriterion("TOWN_NAME <=", value, "TOWN_NAME");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownNameLike(String value) {
            addCriterion("TOWN_NAME like ", value, "TOWN_NAME", 1);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownNameNotLike(String value) {
            addCriterion("TOWN_NAME  not like ", value, "TOWN_NAME", 1);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownNameLeftLike(String value) {
            addCriterion("TOWN_NAME like ", value, "TOWN_NAME", 0);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownNameNotLeftLike(String value) {
            addCriterion("TOWN_NAME  not like ", value, "TOWN_NAME", 0);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownNameRightLike(String value) {
            addCriterion("TOWN_NAME like ", value, "TOWN_NAME", 2);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownNameNotRightLike(String value) {
            addCriterion("TOWN_NAME  not like ", value, "TOWN_NAME", 2);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownNameIn(List<String> values) {
            addCriterion("TOWN_NAME  in ", values, "TOWN_NAME");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownNameNotIn(List<String> values) {
            addCriterion("TOWN_NAME not in ", values, "TOWN_NAME");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownNameBetween(String value1, String value2) {
            addCriterion("TOWN_NAME between ", value1, value2, "TOWN_NAME");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andTownNameNotBetween(String value1, String value2) {
            addCriterion("TOWN_NAME not between ", value1, value2, "TOWN_NAME");
            return (CodeStatTownCriteria) this;
        }
        public CodeStatTownCriteria andResidentPopIsNull() {
            addCriterion("RESIDENT_POP is null");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andResidentPopIsNotNull() {
            addCriterion("RESIDENT_POP is not null");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andResidentPopEqualTo(Integer value) {
            addCriterion("RESIDENT_POP =", value, "RESIDENT_POP");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andResidentPopNotEqualTo(Integer value) {
            addCriterion("RESIDENT_POP <>", value, "RESIDENT_POP");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andResidentPopGreaterThan(Integer value) {
            addCriterion("RESIDENT_POP >", value, "RESIDENT_POP");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andResidentPopGreaterThanOrEqualTo(Integer value) {
            addCriterion("RESIDENT_POP >=", value, "RESIDENT_POP");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andResidentPopLessThan(Integer value) {
            addCriterion("RESIDENT_POP <", value, "RESIDENT_POP");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andResidentPopLessThanOrEqualTo(Integer value) {
            addCriterion("RESIDENT_POP <=", value, "RESIDENT_POP");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andResidentPopLike(Integer value) {
            addCriterion("RESIDENT_POP like ", value, "RESIDENT_POP", 1);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andResidentPopNotLike(Integer value) {
            addCriterion("RESIDENT_POP  not like ", value, "RESIDENT_POP", 1);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andResidentPopLeftLike(Integer value) {
            addCriterion("RESIDENT_POP like ", value, "RESIDENT_POP", 0);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andResidentPopNotLeftLike(Integer value) {
            addCriterion("RESIDENT_POP  not like ", value, "RESIDENT_POP", 0);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andResidentPopRightLike(Integer value) {
            addCriterion("RESIDENT_POP like ", value, "RESIDENT_POP", 2);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andResidentPopNotRightLike(Integer value) {
            addCriterion("RESIDENT_POP  not like ", value, "RESIDENT_POP", 2);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andResidentPopIn(List<Integer> values) {
            addCriterion("RESIDENT_POP  in ", values, "RESIDENT_POP");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andResidentPopNotIn(List<Integer> values) {
            addCriterion("RESIDENT_POP not in ", values, "RESIDENT_POP");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andResidentPopBetween(Integer value1, Integer value2) {
            addCriterion("RESIDENT_POP between ", value1, value2, "RESIDENT_POP");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andResidentPopNotBetween(Integer value1, Integer value2) {
            addCriterion("RESIDENT_POP not between ", value1, value2, "RESIDENT_POP");
            return (CodeStatTownCriteria) this;
        }
        public CodeStatTownCriteria andPovertyPopIsNull() {
            addCriterion("POVERTY_POP is null");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyPopIsNotNull() {
            addCriterion("POVERTY_POP is not null");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyPopEqualTo(Long value) {
            addCriterion("POVERTY_POP =", value, "POVERTY_POP");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyPopNotEqualTo(Long value) {
            addCriterion("POVERTY_POP <>", value, "POVERTY_POP");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyPopGreaterThan(Long value) {
            addCriterion("POVERTY_POP >", value, "POVERTY_POP");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyPopGreaterThanOrEqualTo(Long value) {
            addCriterion("POVERTY_POP >=", value, "POVERTY_POP");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyPopLessThan(Long value) {
            addCriterion("POVERTY_POP <", value, "POVERTY_POP");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyPopLessThanOrEqualTo(Long value) {
            addCriterion("POVERTY_POP <=", value, "POVERTY_POP");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyPopLike(Long value) {
            addCriterion("POVERTY_POP like ", value, "POVERTY_POP", 1);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyPopNotLike(Long value) {
            addCriterion("POVERTY_POP  not like ", value, "POVERTY_POP", 1);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyPopLeftLike(Long value) {
            addCriterion("POVERTY_POP like ", value, "POVERTY_POP", 0);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyPopNotLeftLike(Long value) {
            addCriterion("POVERTY_POP  not like ", value, "POVERTY_POP", 0);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyPopRightLike(Long value) {
            addCriterion("POVERTY_POP like ", value, "POVERTY_POP", 2);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyPopNotRightLike(Long value) {
            addCriterion("POVERTY_POP  not like ", value, "POVERTY_POP", 2);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyPopIn(List<Long> values) {
            addCriterion("POVERTY_POP  in ", values, "POVERTY_POP");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyPopNotIn(List<Long> values) {
            addCriterion("POVERTY_POP not in ", values, "POVERTY_POP");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyPopBetween(Long value1, Long value2) {
            addCriterion("POVERTY_POP between ", value1, value2, "POVERTY_POP");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyPopNotBetween(Long value1, Long value2) {
            addCriterion("POVERTY_POP not between ", value1, value2, "POVERTY_POP");
            return (CodeStatTownCriteria) this;
        }
        public CodeStatTownCriteria andPovertyRateIsNull() {
            addCriterion("POVERTY_RATE is null");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyRateIsNotNull() {
            addCriterion("POVERTY_RATE is not null");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyRateEqualTo(BigDecimal value) {
            addCriterion("POVERTY_RATE =", value, "POVERTY_RATE");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyRateNotEqualTo(BigDecimal value) {
            addCriterion("POVERTY_RATE <>", value, "POVERTY_RATE");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyRateGreaterThan(BigDecimal value) {
            addCriterion("POVERTY_RATE >", value, "POVERTY_RATE");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyRateGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("POVERTY_RATE >=", value, "POVERTY_RATE");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyRateLessThan(BigDecimal value) {
            addCriterion("POVERTY_RATE <", value, "POVERTY_RATE");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyRateLessThanOrEqualTo(BigDecimal value) {
            addCriterion("POVERTY_RATE <=", value, "POVERTY_RATE");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyRateLike(BigDecimal value) {
            addCriterion("POVERTY_RATE like ", value, "POVERTY_RATE", 1);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyRateNotLike(BigDecimal value) {
            addCriterion("POVERTY_RATE  not like ", value, "POVERTY_RATE", 1);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyRateLeftLike(BigDecimal value) {
            addCriterion("POVERTY_RATE like ", value, "POVERTY_RATE", 0);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyRateNotLeftLike(BigDecimal value) {
            addCriterion("POVERTY_RATE  not like ", value, "POVERTY_RATE", 0);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyRateRightLike(BigDecimal value) {
            addCriterion("POVERTY_RATE like ", value, "POVERTY_RATE", 2);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyRateNotRightLike(BigDecimal value) {
            addCriterion("POVERTY_RATE  not like ", value, "POVERTY_RATE", 2);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyRateIn(List<BigDecimal> values) {
            addCriterion("POVERTY_RATE  in ", values, "POVERTY_RATE");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyRateNotIn(List<BigDecimal> values) {
            addCriterion("POVERTY_RATE not in ", values, "POVERTY_RATE");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyRateBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("POVERTY_RATE between ", value1, value2, "POVERTY_RATE");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyRateNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("POVERTY_RATE not between ", value1, value2, "POVERTY_RATE");
            return (CodeStatTownCriteria) this;
        }
        public CodeStatTownCriteria andVillageNumIsNull() {
            addCriterion("VILLAGE_NUM is null");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andVillageNumIsNotNull() {
            addCriterion("VILLAGE_NUM is not null");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andVillageNumEqualTo(Long value) {
            addCriterion("VILLAGE_NUM =", value, "VILLAGE_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andVillageNumNotEqualTo(Long value) {
            addCriterion("VILLAGE_NUM <>", value, "VILLAGE_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andVillageNumGreaterThan(Long value) {
            addCriterion("VILLAGE_NUM >", value, "VILLAGE_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andVillageNumGreaterThanOrEqualTo(Long value) {
            addCriterion("VILLAGE_NUM >=", value, "VILLAGE_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andVillageNumLessThan(Long value) {
            addCriterion("VILLAGE_NUM <", value, "VILLAGE_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andVillageNumLessThanOrEqualTo(Long value) {
            addCriterion("VILLAGE_NUM <=", value, "VILLAGE_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andVillageNumLike(Long value) {
            addCriterion("VILLAGE_NUM like ", value, "VILLAGE_NUM", 1);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andVillageNumNotLike(Long value) {
            addCriterion("VILLAGE_NUM  not like ", value, "VILLAGE_NUM", 1);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andVillageNumLeftLike(Long value) {
            addCriterion("VILLAGE_NUM like ", value, "VILLAGE_NUM", 0);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andVillageNumNotLeftLike(Long value) {
            addCriterion("VILLAGE_NUM  not like ", value, "VILLAGE_NUM", 0);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andVillageNumRightLike(Long value) {
            addCriterion("VILLAGE_NUM like ", value, "VILLAGE_NUM", 2);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andVillageNumNotRightLike(Long value) {
            addCriterion("VILLAGE_NUM  not like ", value, "VILLAGE_NUM", 2);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andVillageNumIn(List<Long> values) {
            addCriterion("VILLAGE_NUM  in ", values, "VILLAGE_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andVillageNumNotIn(List<Long> values) {
            addCriterion("VILLAGE_NUM not in ", values, "VILLAGE_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andVillageNumBetween(Long value1, Long value2) {
            addCriterion("VILLAGE_NUM between ", value1, value2, "VILLAGE_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andVillageNumNotBetween(Long value1, Long value2) {
            addCriterion("VILLAGE_NUM not between ", value1, value2, "VILLAGE_NUM");
            return (CodeStatTownCriteria) this;
        }
        public CodeStatTownCriteria andPovertyVillageNumIsNull() {
            addCriterion("POVERTY_VILLAGE_NUM is null");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyVillageNumIsNotNull() {
            addCriterion("POVERTY_VILLAGE_NUM is not null");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyVillageNumEqualTo(Long value) {
            addCriterion("POVERTY_VILLAGE_NUM =", value, "POVERTY_VILLAGE_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyVillageNumNotEqualTo(Long value) {
            addCriterion("POVERTY_VILLAGE_NUM <>", value, "POVERTY_VILLAGE_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyVillageNumGreaterThan(Long value) {
            addCriterion("POVERTY_VILLAGE_NUM >", value, "POVERTY_VILLAGE_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyVillageNumGreaterThanOrEqualTo(Long value) {
            addCriterion("POVERTY_VILLAGE_NUM >=", value, "POVERTY_VILLAGE_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyVillageNumLessThan(Long value) {
            addCriterion("POVERTY_VILLAGE_NUM <", value, "POVERTY_VILLAGE_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyVillageNumLessThanOrEqualTo(Long value) {
            addCriterion("POVERTY_VILLAGE_NUM <=", value, "POVERTY_VILLAGE_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyVillageNumLike(Long value) {
            addCriterion("POVERTY_VILLAGE_NUM like ", value, "POVERTY_VILLAGE_NUM", 1);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyVillageNumNotLike(Long value) {
            addCriterion("POVERTY_VILLAGE_NUM  not like ", value, "POVERTY_VILLAGE_NUM", 1);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyVillageNumLeftLike(Long value) {
            addCriterion("POVERTY_VILLAGE_NUM like ", value, "POVERTY_VILLAGE_NUM", 0);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyVillageNumNotLeftLike(Long value) {
            addCriterion("POVERTY_VILLAGE_NUM  not like ", value, "POVERTY_VILLAGE_NUM", 0);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyVillageNumRightLike(Long value) {
            addCriterion("POVERTY_VILLAGE_NUM like ", value, "POVERTY_VILLAGE_NUM", 2);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyVillageNumNotRightLike(Long value) {
            addCriterion("POVERTY_VILLAGE_NUM  not like ", value, "POVERTY_VILLAGE_NUM", 2);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyVillageNumIn(List<Long> values) {
            addCriterion("POVERTY_VILLAGE_NUM  in ", values, "POVERTY_VILLAGE_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyVillageNumNotIn(List<Long> values) {
            addCriterion("POVERTY_VILLAGE_NUM not in ", values, "POVERTY_VILLAGE_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyVillageNumBetween(Long value1, Long value2) {
            addCriterion("POVERTY_VILLAGE_NUM between ", value1, value2, "POVERTY_VILLAGE_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyVillageNumNotBetween(Long value1, Long value2) {
            addCriterion("POVERTY_VILLAGE_NUM not between ", value1, value2, "POVERTY_VILLAGE_NUM");
            return (CodeStatTownCriteria) this;
        }
        public CodeStatTownCriteria andPovertyFamilyNumIsNull() {
            addCriterion("POVERTY_FAMILY_NUM is null");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyFamilyNumIsNotNull() {
            addCriterion("POVERTY_FAMILY_NUM is not null");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyFamilyNumEqualTo(Long value) {
            addCriterion("POVERTY_FAMILY_NUM =", value, "POVERTY_FAMILY_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyFamilyNumNotEqualTo(Long value) {
            addCriterion("POVERTY_FAMILY_NUM <>", value, "POVERTY_FAMILY_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyFamilyNumGreaterThan(Long value) {
            addCriterion("POVERTY_FAMILY_NUM >", value, "POVERTY_FAMILY_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyFamilyNumGreaterThanOrEqualTo(Long value) {
            addCriterion("POVERTY_FAMILY_NUM >=", value, "POVERTY_FAMILY_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyFamilyNumLessThan(Long value) {
            addCriterion("POVERTY_FAMILY_NUM <", value, "POVERTY_FAMILY_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyFamilyNumLessThanOrEqualTo(Long value) {
            addCriterion("POVERTY_FAMILY_NUM <=", value, "POVERTY_FAMILY_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyFamilyNumLike(Long value) {
            addCriterion("POVERTY_FAMILY_NUM like ", value, "POVERTY_FAMILY_NUM", 1);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyFamilyNumNotLike(Long value) {
            addCriterion("POVERTY_FAMILY_NUM  not like ", value, "POVERTY_FAMILY_NUM", 1);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyFamilyNumLeftLike(Long value) {
            addCriterion("POVERTY_FAMILY_NUM like ", value, "POVERTY_FAMILY_NUM", 0);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyFamilyNumNotLeftLike(Long value) {
            addCriterion("POVERTY_FAMILY_NUM  not like ", value, "POVERTY_FAMILY_NUM", 0);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyFamilyNumRightLike(Long value) {
            addCriterion("POVERTY_FAMILY_NUM like ", value, "POVERTY_FAMILY_NUM", 2);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyFamilyNumNotRightLike(Long value) {
            addCriterion("POVERTY_FAMILY_NUM  not like ", value, "POVERTY_FAMILY_NUM", 2);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyFamilyNumIn(List<Long> values) {
            addCriterion("POVERTY_FAMILY_NUM  in ", values, "POVERTY_FAMILY_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyFamilyNumNotIn(List<Long> values) {
            addCriterion("POVERTY_FAMILY_NUM not in ", values, "POVERTY_FAMILY_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyFamilyNumBetween(Long value1, Long value2) {
            addCriterion("POVERTY_FAMILY_NUM between ", value1, value2, "POVERTY_FAMILY_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andPovertyFamilyNumNotBetween(Long value1, Long value2) {
            addCriterion("POVERTY_FAMILY_NUM not between ", value1, value2, "POVERTY_FAMILY_NUM");
            return (CodeStatTownCriteria) this;
        }
        public CodeStatTownCriteria andAidStaffNumIsNull() {
            addCriterion("AID_STAFF_NUM is null");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidStaffNumIsNotNull() {
            addCriterion("AID_STAFF_NUM is not null");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidStaffNumEqualTo(Long value) {
            addCriterion("AID_STAFF_NUM =", value, "AID_STAFF_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidStaffNumNotEqualTo(Long value) {
            addCriterion("AID_STAFF_NUM <>", value, "AID_STAFF_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidStaffNumGreaterThan(Long value) {
            addCriterion("AID_STAFF_NUM >", value, "AID_STAFF_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidStaffNumGreaterThanOrEqualTo(Long value) {
            addCriterion("AID_STAFF_NUM >=", value, "AID_STAFF_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidStaffNumLessThan(Long value) {
            addCriterion("AID_STAFF_NUM <", value, "AID_STAFF_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidStaffNumLessThanOrEqualTo(Long value) {
            addCriterion("AID_STAFF_NUM <=", value, "AID_STAFF_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidStaffNumLike(Long value) {
            addCriterion("AID_STAFF_NUM like ", value, "AID_STAFF_NUM", 1);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidStaffNumNotLike(Long value) {
            addCriterion("AID_STAFF_NUM  not like ", value, "AID_STAFF_NUM", 1);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidStaffNumLeftLike(Long value) {
            addCriterion("AID_STAFF_NUM like ", value, "AID_STAFF_NUM", 0);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidStaffNumNotLeftLike(Long value) {
            addCriterion("AID_STAFF_NUM  not like ", value, "AID_STAFF_NUM", 0);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidStaffNumRightLike(Long value) {
            addCriterion("AID_STAFF_NUM like ", value, "AID_STAFF_NUM", 2);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidStaffNumNotRightLike(Long value) {
            addCriterion("AID_STAFF_NUM  not like ", value, "AID_STAFF_NUM", 2);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidStaffNumIn(List<Long> values) {
            addCriterion("AID_STAFF_NUM  in ", values, "AID_STAFF_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidStaffNumNotIn(List<Long> values) {
            addCriterion("AID_STAFF_NUM not in ", values, "AID_STAFF_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidStaffNumBetween(Long value1, Long value2) {
            addCriterion("AID_STAFF_NUM between ", value1, value2, "AID_STAFF_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidStaffNumNotBetween(Long value1, Long value2) {
            addCriterion("AID_STAFF_NUM not between ", value1, value2, "AID_STAFF_NUM");
            return (CodeStatTownCriteria) this;
        }
        public CodeStatTownCriteria andAidProjectIsNull() {
            addCriterion("AID_PROJECT is null");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidProjectIsNotNull() {
            addCriterion("AID_PROJECT is not null");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidProjectEqualTo(Long value) {
            addCriterion("AID_PROJECT =", value, "AID_PROJECT");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidProjectNotEqualTo(Long value) {
            addCriterion("AID_PROJECT <>", value, "AID_PROJECT");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidProjectGreaterThan(Long value) {
            addCriterion("AID_PROJECT >", value, "AID_PROJECT");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidProjectGreaterThanOrEqualTo(Long value) {
            addCriterion("AID_PROJECT >=", value, "AID_PROJECT");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidProjectLessThan(Long value) {
            addCriterion("AID_PROJECT <", value, "AID_PROJECT");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidProjectLessThanOrEqualTo(Long value) {
            addCriterion("AID_PROJECT <=", value, "AID_PROJECT");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidProjectLike(Long value) {
            addCriterion("AID_PROJECT like ", value, "AID_PROJECT", 1);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidProjectNotLike(Long value) {
            addCriterion("AID_PROJECT  not like ", value, "AID_PROJECT", 1);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidProjectLeftLike(Long value) {
            addCriterion("AID_PROJECT like ", value, "AID_PROJECT", 0);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidProjectNotLeftLike(Long value) {
            addCriterion("AID_PROJECT  not like ", value, "AID_PROJECT", 0);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidProjectRightLike(Long value) {
            addCriterion("AID_PROJECT like ", value, "AID_PROJECT", 2);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidProjectNotRightLike(Long value) {
            addCriterion("AID_PROJECT  not like ", value, "AID_PROJECT", 2);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidProjectIn(List<Long> values) {
            addCriterion("AID_PROJECT  in ", values, "AID_PROJECT");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidProjectNotIn(List<Long> values) {
            addCriterion("AID_PROJECT not in ", values, "AID_PROJECT");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidProjectBetween(Long value1, Long value2) {
            addCriterion("AID_PROJECT between ", value1, value2, "AID_PROJECT");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidProjectNotBetween(Long value1, Long value2) {
            addCriterion("AID_PROJECT not between ", value1, value2, "AID_PROJECT");
            return (CodeStatTownCriteria) this;
        }
        public CodeStatTownCriteria andAidNumIsNull() {
            addCriterion("AID_NUM is null");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidNumIsNotNull() {
            addCriterion("AID_NUM is not null");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidNumEqualTo(Long value) {
            addCriterion("AID_NUM =", value, "AID_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidNumNotEqualTo(Long value) {
            addCriterion("AID_NUM <>", value, "AID_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidNumGreaterThan(Long value) {
            addCriterion("AID_NUM >", value, "AID_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidNumGreaterThanOrEqualTo(Long value) {
            addCriterion("AID_NUM >=", value, "AID_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidNumLessThan(Long value) {
            addCriterion("AID_NUM <", value, "AID_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidNumLessThanOrEqualTo(Long value) {
            addCriterion("AID_NUM <=", value, "AID_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidNumLike(Long value) {
            addCriterion("AID_NUM like ", value, "AID_NUM", 1);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidNumNotLike(Long value) {
            addCriterion("AID_NUM  not like ", value, "AID_NUM", 1);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidNumLeftLike(Long value) {
            addCriterion("AID_NUM like ", value, "AID_NUM", 0);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidNumNotLeftLike(Long value) {
            addCriterion("AID_NUM  not like ", value, "AID_NUM", 0);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidNumRightLike(Long value) {
            addCriterion("AID_NUM like ", value, "AID_NUM", 2);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidNumNotRightLike(Long value) {
            addCriterion("AID_NUM  not like ", value, "AID_NUM", 2);
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidNumIn(List<Long> values) {
            addCriterion("AID_NUM  in ", values, "AID_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidNumNotIn(List<Long> values) {
            addCriterion("AID_NUM not in ", values, "AID_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidNumBetween(Long value1, Long value2) {
            addCriterion("AID_NUM between ", value1, value2, "AID_NUM");
            return (CodeStatTownCriteria) this;
        }

        public CodeStatTownCriteria andAidNumNotBetween(Long value1, Long value2) {
            addCriterion("AID_NUM not between ", value1, value2, "AID_NUM");
            return (CodeStatTownCriteria) this;
        }

    }

    public static class CodeStatTownCriteria extends GeneratedCriteria {

        protected CodeStatTownCriteria() {
            super();
        }
    }

    public static class CodeStatTownCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected CodeStatTownCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected CodeStatTownCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected CodeStatTownCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected CodeStatTownCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected CodeStatTownCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected CodeStatTownCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}